﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.world {
    import flash.display.*;
    import flash.geom.*;
    import net.wooga.pets.events.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.utils.*;

    public class CreateDummyRoomCommand extends Command {

        public var event:InfoEvent;

        override public function execute():void{
            var _local1:Point = (this.event.info as Point);
            var _local2:MovieClip = AssetsLibrary.getMovieClip(GameConstants.ROOM_DUMMY);
            _local2.name = this.event.id;
            _local2.x = _local1.x;
            _local2.y = _local1.y;
            dispatch(new InfoEvent(EventConstants.PLACE_DUMMY_ROOM, null, _local2));
        }

    }
}//package net.wooga.pets.controllers.world 
